<?php  
add_action('admin_init','check_role');
function check_role()
{
    global $wp_roles;
    $current_user = wp_get_current_user();
    $roles = $current_user->roles;
    $role = array_shift($roles);
    $role_name = isset($wp_roles->role_names[$role]) ? $wp_roles->role_names[$role] : false;
    
    if($role_name == 'Editor extend')
    {
        add_action( 'admin_footer', 'disable_store_aff_link' );
    }
}

function disable_store_aff_link()
{   
?>
    <script type="text/javascript">
    jQuery(document).ready(function($) {        
        $('#aff_url_store_metadata').hide();        
    })
    </script>
<?php  
}
?>